#ifndef _DXZLIBURARY_H
#define _DXZLIBURARY_H

#include <stdio.h>

#if defined(WIN32) || defined(XENON)
	#ifdef WIN32
		#define WIN32_LEAN_AND_MEAN
		#include <windows.h>
		#define DXZLoadLibrary(libName) ::LoadLibrary(libName)
		#define DXZGetProcAddress(modulename ,funcname) ::GetProcAddress((HMODULE)modulename ,funcname) 
		#define DXZFreeLibrary(libHandle) ::FreeLibrary((HMODULE)(libHandle))
		#else //WIN32
		// For Xenon.
		extern HMODULE XenonLoadLibrary( const char *libName );
		#define DXZLoadLibrary(libName) XenonLoadLibrary(libName)
	#endif //WIN32
#endif
#endif